#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from distutils.core import setup
from glob import glob
import py2exe
import os
#import plugins.yandex_ru

#sys.argv.extend(['py2exe','-O2'])

data_files = [
    ("", glob('./win32/*.*')),
    "", glob('./VERSION')),
    "", glob('./INSTALL')),
    ("icons", glob('./icons/*.*')),
    ]

setup(
  data_files = data_files,
  options = { "py2exe":
    {
    "includes": ["sip", "PyQt4.QtNetwork","pyexpat", 'xml.etree.ElementTree'],
    "excludes": ["pdb", "email.utils", "bz2",
                "pygments", "markdown", "memcache", "doctest", "unittest",
                "_codecs_cn","_codecs_hk","_codecs_jp","_codecs_2022","_codecs_tw",
                "ftplib"],
    "dist_dir": '.dist',
    "packages": ["plugins"],
    "dll_excludes": ["w9xpopen.exe"],
    "compressed":False,
    "skip_archive":True,
    }

  }, # for pyodbc
  windows = [
    {'script':'photoget.py',
     #'icon_resources': [(0,'img/aspid2.ico')]
    }
    ],
)
